package com.example.springstack.mybatisplus;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;

import java.util.TimeZone;

/**
 * @author qiangfanghao
 * @date
 * Application配置开启 mybatis 包扫描,实体类扫描
 */
@SpringBootApplication
@MapperScan("com.example.springstack.**.dao")
@EntityScan("com.example.springstack.mybatisplus.entity")
public class MybatisPlusApplication {
    public static void main(String[] args) {
        TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
        SpringApplication.run(MybatisPlusApplication.class,args);
    }
}
